<?php
defined('_JEXEC') or die;
jimport('joomla.application.component.controllerform');


class CouponsControllerCoupon extends JControllerForm
{
    protected $text_prefix = 'COM_COUPONS_COUPONS';
    
    public function batch($model = null)
    {
            JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));

            // Set the model
            $model = $this->getModel('Coupon', '', array());

            // Preset the redirect
            $this->setRedirect(JRoute::_('index.php?option=com_soupons&view=coupons' . $this->getRedirectToListAppend(), false));

            return parent::batch($model); 
    }
}
?>